﻿function saveEditRegion(id) {
    displayProcessing(id);
    $.post("/EditRegion/Save/", { id: id, content: $('#' + id).val() }, function(data) { displayResult(data); });
}

function displayResult(data) {
    var result = data.split(',');
    $('#result_' + result[0]).text(result[2]);
    $('#result_' + result[0]).show(300);
    if (result[1] == "true") {
        $('#result_' + result[0]).delay(1200).hide(0)
    }
}

function displayProcessing(id) {
    $('#result_' + id).text("Processing...").show(0);
}
